﻿<Window x:Class="MDSAdministration.SortOrder"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="SortOrder" Height="338" Width="456" Loaded="Window_Loaded">
    <Grid>
        <Button Content="Up" Height="23" Margin="0,135,12,0" Name="btnUp" VerticalAlignment="Top" HorizontalAlignment="Right" Width="75" Click="btnUp_Click" />
        <Button Content="Down" Height="23" Margin="0,164,12,0" Name="btnDown" VerticalAlignment="Top" HorizontalAlignment="Right" Width="75" Click="btnDown_Click" />
        <Label Content="Label" HorizontalAlignment="Left" Margin="12,0,0,233" Name="lblServer" />
        <Label Content="Label" Height="28" HorizontalAlignment="Left" Margin="12,21,0,0" Name="lblEntityName" VerticalAlignment="Top" />
        <DataGrid Margin="12,49,93,12" Name="dgSortOrder" CanUserAddRows="False" AutoGenerateColumns="False" CanUserDeleteRows="False" ItemsSource="{Binding}" CanUserSortColumns="True" CanUserResizeRows="False" LoadingRow="dgSortOrder_LoadingRow">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Name" Binding="{Binding Name}" IsReadOnly="True" />
                <DataGridTextColumn Header="IsSystem" Binding="{Binding IsSystem}" IsReadOnly="True" />
                <DataGridTextColumn Header="OrginalSortOrder" Binding="{Binding SortOrder}" IsReadOnly="True" />
                <DataGridTextColumn Header="ChangeSortOrder" Binding="{Binding ChangeSortOrder}" x:Name="dgtChangeSortOrder" />
            </DataGrid.Columns>
        </DataGrid>
        <Button Content="Resequence" Height="23" Margin="0,49,12,0" Name="btnResequence" VerticalAlignment="Top" Click="btnResequence_Click" HorizontalAlignment="Right" Width="75" />
        <Button Content="Deploy" Height="23" Margin="0,78,12,0" Name="btnDeploy" VerticalAlignment="Top" Click="btnDeploy_Click" HorizontalAlignment="Right" Width="75" />
    </Grid>
</Window>
